using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class Coronary_lesionsMap : EntityTypeConfiguration<Coronary_lesions>
    {
        public Coronary_lesionsMap()
        {
            // Primary Key
            this.HasKey(t => t.CI_ID);

            // Properties
            this.Property(t => t.patient_id)
                .HasMaxLength(20);

            this.Property(t => t.create_by)
                .HasMaxLength(50);

            this.Property(t => t.CI_Coronary_lesions)
                .HasMaxLength(100);

            this.Property(t => t.CI_Specific_segments)
                .HasMaxLength(50);

            this.Property(t => t.CI_Lesion_morphology)
                .HasMaxLength(50);

            this.Property(t => t.CI_Narrow)
                .HasMaxLength(50);

            this.Property(t => t.CI_Narrow_detail)
                .HasMaxLength(50);

            this.Property(t => t.CI_Lesions)
                .HasMaxLength(50);

            this.Property(t => t.CI_Lesions_aneurysm)
                .HasMaxLength(50);

            this.Property(t => t.CI_Muscle_bridge)
                .HasMaxLength(50);

            this.Property(t => t.CI_Systolic_oppressive)
                .HasMaxLength(50);

            this.Property(t => t.CI_Systolic_detail)
                .HasMaxLength(50);

            this.Property(t => t.Cl_Spasm)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("Coronary_lesions");
            this.Property(t => t.CI_ID).HasColumnName("CI_ID");
            this.Property(t => t.patient_id).HasColumnName("patient_id");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
            this.Property(t => t.create_time).HasColumnName("create_time");
            this.Property(t => t.create_by).HasColumnName("create_by");
            this.Property(t => t.CI_Coronary_lesions).HasColumnName("CI_Coronary_lesions");
            this.Property(t => t.CI_Specific_segments).HasColumnName("CI_Specific_segments");
            this.Property(t => t.CI_Lesion_morphology).HasColumnName("CI_Lesion_morphology");
            this.Property(t => t.CI_Narrow).HasColumnName("CI_Narrow");
            this.Property(t => t.CI_Narrow_detail).HasColumnName("CI_Narrow_detail");
            this.Property(t => t.CI_Lesions).HasColumnName("CI_Lesions");
            this.Property(t => t.CI_Lesions_aneurysm).HasColumnName("CI_Lesions_aneurysm");
            this.Property(t => t.CI_Muscle_bridge).HasColumnName("CI_Muscle_bridge");
            this.Property(t => t.CI_Systolic_oppressive).HasColumnName("CI_Systolic_oppressive");
            this.Property(t => t.CI_Systolic_detail).HasColumnName("CI_Systolic_detail");
            this.Property(t => t.Cl_Spasm).HasColumnName("Cl_Spasm");
        }
    }
}
